<html>
<head>
<title> Sample multiple uploader </title>


<link href="http://demos.lo/uploadify.css" rel="stylesheet" type="text/css" />


<script type="text/javascript" src="http://demos.lo/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="http://demos.lo/swfobject.js"></script>
<script type="text/javascript" src="http://demos.lo/jquery.uploadify.js"></script>

<script type="text/javascript">
$(document).ready(function() {
	/*
	$('#uploadify').uploadify({
		'uploader': 'http://demos.lo/jquery/uploadify.swf',
		'script': 'http://demos.lo/jquery/uploadify.php',
		'folder': '/jquery/uploads-folder',
		'multi' : true,
		'cancelImg': 'http://demos.lo/jquery/cancel.png',
		fileDesc: 'Image files',
		fileExt: '*.jpg;*.jpeg;*.gif;*.png',
		onAllComplete: function(event, data) {
			$('#message').html('Files uploaded successfully.').fadeIn('slow', function() { setTimeout('$("#message").fadeOut("slow");', 3000); });
		}
	});
	*/
	
	$("#fileInput2").uploadify({
		'uploader'       : '/uploadify.swf',
		'script'         : '/uploadify.php',
		'cancelImg'      : '/cancel.png',
		'folder'         : '/uploads-folder',
		'multi'          : true,
		'onComplete' 	  : function(){alert("done");}
	});

});

$(window).unload(function() {alert('unloading')});
</script>
</head>
<body>
	<h1>Uploadify Demo</h1>
	<p>
		Please select images to upload. You may select multiple, and they will begin 
		as soon as you click Ok on the Open Dialog box.
	</p>
 <!--
	<p id="message" class="messageBox" style="display: none;"></p>
	<div id="uploadify"></div>
-->
	<input id="fileInput2" name="fileInput2" type="file" /> <a href="javascript:$('#fileInput2').uploadifyUpload();">Upload Files</a> | <a href="javascript:$('#fileInput2').uploadifyClearQueue();">Clear Queue</a></div>

</body>
</html>
